Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code cleanup--tests #29030

Merged
merged 1 commit into from
Sep 9, 2022
Merged

Code cleanup--tests #29030

merged 1 commit into from
Sep 9, 2022

Conversation

ajcvickers
Copy link
Member

Fixes #28964

@ajcvickers ajcvickers requested a review from a team September 9, 2022 12:55
@@ -64,7 +66,9 @@ private class MockOperation<T> : OperationExecutor.OperationBase
{
public MockOperation(IOperationResultHandler resultHandler, Func<T> action)
: base(resultHandler)
=> Execute(action);
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe there's a rule to allow this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but we previously decided to not use expression bodies for constructors.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok :(

@@ -90,7 +90,8 @@ public void Test_new_annotations_handled_for_entity_types()
RelationalAnnotationNames.ModelDependencies,
RelationalAnnotationNames.FieldValueGetter,
RelationalAnnotationNames.JsonPropertyName,
RelationalAnnotationNames.ContainerColumnName, // Appears on entity type but requires specific model (i.e. owned types that can map to json, otherwise validation throws)
RelationalAnnotationNames
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can just put the comment on the preceding line or something

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

{
Name = "Initial",
};
var entity = new Entity { Name = "Initial", };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var entity = new Entity { Name = "Initial", };
var entity = new Entity { Name = "Initial" };

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@@ -34,7 +34,7 @@ public void Compare_returns_0_only_for_commands_that_are_equal()
entry1.SetEntityState(EntityState.Added);
var modificationCommandAdded = modificationCommandSource.CreateModificationCommand(
new ModificationCommandParameters(table, false, false, null, new ParameterNameGenerator().GenerateNext));
// new ModificationCommandParameters("A", null, false, false, null, new ParameterNameGenerator().GenerateNext));
// new ModificationCommandParameters("A", null, false, false, null, new ParameterNameGenerator().GenerateNext));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// new ModificationCommandParameters("A", null, false, false, null, new ParameterNameGenerator().GenerateNext));

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@ajcvickers ajcvickers merged commit 6c116b7 into release/7.0 Sep 9, 2022
@ajcvickers ajcvickers deleted the TroubleTown0909 branch September 9, 2022 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reformat code
2 participants